home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 52
/
Volume 52 - JOGO DISK .iso
/
Games
/
scoobykickinit.swf
/
scripts
/
__Packages
/
com
/
ndimedia
/
containers
/
View.as
Wrap
Text File
|
2007-09-28
|
1KB
|
59 lines
class com.ndimedia.containers.View extends com.ndimedia.display.Sprite
{
function View(scope, d)
{
super(scope,d);
this.m_aChildren = new Array();
this.m_bAnimated = false;
this.setPosition(0,0);
this.hide();
}
function addChild(s)
{
this.m_aChildren.push(s);
}
function get children()
{
return this.m_aChildren;
}
function repaint()
{
}
function setPosition(x, y)
{
this.m_x = x;
this.m_y = y;
}
function hide()
{
this.__get__graphics()._x = 5000;
}
function show()
{
this.__get__graphics()._x = this.m_x;
this.__get__graphics()._y = this.m_y;
}
function getPosition()
{
return new com.ndimedia.math.alg.Point(this.m_x,this.m_y);
}
function getSize()
{
return new com.ndimedia.math.geom.Rect(this.__get__graphics()._width,this.__get__graphics()._height);
}
function get animated()
{
return this.m_bAnimated;
}
function setAnims(intro, outro)
{
this.m_intro = intro;
this.m_outro = outro;
this.m_bAnimated = true;
}
function toString()
{
return "View";
}
}